package com.peach.service;


import com.peach.pojo.Activity;
import com.peach.pojo.User;
import com.peach.pojo.UserBranch;
import com.peach.pojo.UserStage;

import java.util.List;

public interface UserService {
    List<User> selectAllUsersByConditions(Integer userId,
                                          String userName,
                                          String userClass,
                                          Integer userBranchId,
                                          Integer userStageId);
    List<User> selectAllUsers();
    Boolean insertOneUser(User user);
    Boolean updateOneUser(User user);
    Boolean deleteOneUser(Integer userId);

    User selectUsersById(Integer userId);
    List<User> selectUsersByBranch(Integer userBranchId);
    List<User> selectUsersByStage(Integer userStageId);

    List<UserBranch> selectAllUserBranches();
    List<UserStage> selectAllUserStages();

    User selectOneUser(Integer userId);
}
